//
//  DefineHeader.h
//  BestPurchase
//
//  Created by ZSMAC on 2018/10/9.
//  Copyright © 2018年 张帅. All rights reserved.
//

#ifndef DefineHeader_h
#define DefineHeader_h
///后台appkey
#define APP_KEY @"5fc31c53afeab3907c356e09786d72ba"
#define WeakObj(o) autoreleasepool{} __weak typeof(o) o##Weak = o;
//应用主体颜色
#define themeColor MyRGB(245, 138, 11)
#define MCUSTOM_TIME_ZONE @"GMT+0000"
#define BUTTON_FONT 16
///顶部状态栏的高度
#define StatusBar_Rect ([[UIApplication sharedApplication] statusBarFrame])

///顶部状态栏的高度+44 导航条的高
#define NavBarHeight (StatusBar_Rect.size.height + 44)

#define Font(x) ([UIFont systemFontOfSize:x])

#define MyRGB(r,g,b) ([UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:1])

#define SCALE [UIScreen mainScreen].bounds.size.width/667//屏幕宽高比

//系统版本 宏定义
#define SYSTEM_VERSIONS ([[[UIDevice currentDevice]systemVersion]floatValue])
//屏幕尺寸Rect 宏定义
#define SCREEN_RECT ([[UIScreen mainScreen] bounds])
#define SCREEN_HEIGHT SCREEN_RECT.size.height
#define SCREEN_WIDTH SCREEN_RECT.size.width

///是否是iponeX
#define IS_IPHONEX (MAX(SCREEN_HEIGHT, SCREEN_WIDTH) > 800)

#endif /* DefineHeader_h */
